-- GENERATED SPELL FOR [Frostpaw Warrior] --


function spell0_26357(pUnit, Event) --@Demoralizing Shout,Self--
pUnit:FullCastSpellOnTarget(13730,pUnit)
pUnit:RegisterEvent('Sorts_26357', 30331, 1)
end

function spell1_26357(pUnit, Event) --@Pummel,n/a--
pUnit:FullCastSpellOnTarget(12555,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26357', 5285, 1)
end

function spell2_26357(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(12054,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26357', 15000, 1)
end

function Sorts_26357(pUnit, Event)
local choix_sorts_26357 = math.random(0, 2)
if choix_sorts_26357 == 0 then
pUnit:RegisterEvent('spell0_26357', 1, 1)
end
if choix_sorts_26357 == 1 then
pUnit:RegisterEvent('spell1_26357', 1, 1)
end
if choix_sorts_26357 == 2 then
pUnit:RegisterEvent('spell2_26357', 1, 1)
end
end

function mob26357_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26357', math.random(1500, 3000), 1)
end

function mob26357_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26357_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26357_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26357, 1, 'mob26357_Action')
RegisterUnitEvent(26357, 2, 'mob26357_Leave')
RegisterUnitEvent(26357, 3, 'mob26357_Kill')
RegisterUnitEvent(26357, 4, 'mob26357_Die')
